
from django.urls import path
from meidou_mall.apps.users import views

urlpatterns = [
    path('register', views.RegisterView.as_view()),
    path('usernames/<str:username>/count/', views.CheckUsernameCountView.as_view()),
    path('mobiles/<str:mobile>/count/', views.CheckMobileCountView.as_view()),
    path('login/', views.LoginView.as_view()),
    path('logout/', views.LogoutView.as_view()),
    path('info/', views.UserInfoView.as_view()),
    path('emails/', views.EmailView.as_view()),
    path('verify/email', views.VerifyEmailView.as_view()),
    path('addresses/', views.AddressView.as_view()),
    path('addresses/create/', views.AddressesCreateView.as_view()),
    path('addresses/<address_id>/', views.AddressesUpdateView.as_view()),
    path('addresses/<address_id>/default/', views.AddressesDefaultView.as_view()),
    path('addresses/<address_id>/title/', views.AddressTitleView.as_view()),
    path('password/', views.UserPassWordView.as_view()),
]